using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace DataAssociations.AssociationMiningAlgorithms.Facades
{
    public class AprioriAlgorithmRunner : IAssociationFinder
    {
        public void FindAssociations(List<List<string>> inputSets, string path, int minSupport, int minConfidence, bool overWriteFile)
        {
            var sb = new StringBuilder();
            AssociationMiningAlgorithms.Apriori.Mining.GetResults(sb, inputSets, minSupport, minConfidence);

            File.WriteAllText(Path.GetTempPath() + path, sb.ToString());
        }
    }
}